package homework.threadwork2.testing;

import homework.threadwork2.coding.GenerateWeater;
import homework.threadwork2.coding.ReadWeather;
import homework.threadwork2.coding.Weather;

public class Test {

    public static void main(String[] args) {

        Weather weather = new Weather();
        GenerateWeater generateWeater = new GenerateWeater(weather);
        ReadWeather readWeather = new ReadWeather(weather);
        Thread generate = new Thread(generateWeater);
        Thread read = new Thread(readWeather);

        generate.start();
        read.start();




    }
}
